#!/bin/bash

cd ../dia

if ! [ -d ../thesis/img ]; then
	mkdir ../thesis/img
fi

for file in `ls *.dia | sed -e 's/\.dia$//'`
do
	dia --export ../thesis/img/$file.eps $file.dia
done

cd ../lib/system

for file in `ls *.dot | sed -e 's/\.dot$//'`
do
	dot -Tps $file.dot -o ../../thesis/img/$file.eps
done

cd ../../thesis/img

for file in `ls *.eps`
do
	epstopdf $file
done
